/*
 * @Description: 
 * @Author: lxc
 * @Date: 2019-07-02 16:14:07
 * @LastEditTime: 2019-08-14 16:08:19
 * @LastEditors: lxc
 */
// 导出 store 的地方

import Vue from 'vue'
import Vuex from 'vuex'
// import state from './index'
// import actions from './actions'
// import mutations from './mutations'
// import getters from './getters'
import Https from '../plugins/Ccom'

Vue.use(Vuex)

let store

const initStore = () => {
  return store || (store = new Vuex.Store({
    // 存放公用数据
    state: {
      queryCfgDataByCmid: "/app/cfg/queryCfgDataByCmid",//根据cmId查询配置信息
      queryRegionByCityCode:"/app/district/queryRegionByCityCode",//.根据市编码查询区
      queryMyDemandHouseInfoList:"/app/houseInfo/queryMyDemandHouseInfoList",//.我要找房
      historyCode: [],
    }
  }))
}

export default initStore